<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>公共页面</title>
</head>
<body>

<div class="layui-header" th:fragment="header">
    <div class="layui-logo">管理员</div>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item"><a th:href="@{/local/admin/logout}">注销</a></li>
    </ul>
</div>


<div class="layui-side layui-bg-black" th:fragment="side">
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            <li class="layui-nav-item layui-nav-itemed">
                <a class="" th:href="@{/admin/function}">资料管理</a>
                <dl class="layui-nav-child">
                    <dd><a th:href="@{/admin/addSource}">添加资料</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a th:href="@{/admin/addModule}">模块管理</a>
<!--                <dl class="layui-nav-child">-->
<!--                    <dd><a th:href="@{/admin/addModule}">添加模块</a></dd>-->
<!--                    <dd><a href="javascript:">删除模块</a></dd>-->
<!--                </dl>-->
            </li>
            <li shiro:hasRole="ROLE_ADMIN" class="layui-nav-item"><a th:href="@{/admin/add}">用户管理</a></li>
        </ul>
    </div>
</div>

</body>
</html>